import { request } from './request.js';
//获取车辆列表
export const getSurplusList = (params) => {
  return request({
    url: '/Maintain/SelectSuplus',
    method: 'get',
    params,
  });
};
//新增车辆
export const addSurplus = (data) => {
  return request({
    url: '/Maintain/AddSuplus/btn-storageadd',
    method: 'post',
    data,
  });
};
//修改车辆
export const editSurplus = (data) => {
  return request({
    url: '/Maintain/UpdateSuplus/btn-storageupdate',
    method: 'post',
    data,
  });
};
//删除车辆
export const delSurplus = (params) => {
  return request({
    url: '/Maintain/DeleteSuplus/btn-storagedelete',
    method: 'get',
    params,
  });
};

// 车辆批量插入
export const addSurplusList = (data) => {
  return request({
    url: '/Maintain/AddSuplusList/btn-storageload',
    method: 'post',
    data,
  });
};
//获取药品字典按分类
export const getDrugsSortedGroup = () => {
  return request({
    url: '/Maintain/GetDrugsSortedGroup',
    method: 'get',
  });
};
